package org.yate.oa.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.PerformanceEntityU;
import org.yate.oa.utils.Pagination;

@Repository(value = "performanceMapperU")
@CacheNamespace(size = 512)
public interface PerformanceMapperU extends IBaseMapperDao<PerformanceEntityU, Integer> {
	List<PerformanceEntityU> getEntitieSearch(Pagination<PerformanceEntityU> page, @Param(value = "orderField") final String orderField, @Param(value = "orderMode") final String orderMode,
			@Param(value = "where") final Map<String, Object> map);

	List<PerformanceEntityU> getEntitieSearch(@Param(value = "where") final Map<String, Object> map);
	
	
	void updateEntitiesBy(@Param(value="where") final Map<String, Object> map);
}
